![]() ![]() ![]() ![]() |
Troubleshooting and Configuring the Windows NT/95 Registry
- J -Sample .ADM FilesTemplate files allow you to add options to System Policy Editor quickly and easily. Writing the template files can be a little difficult, so I have included template files for most of the Registry changes made in the rest of the book. You will find each of these files in the CD-ROM kit that accompanies this book. Feel free to modify them to your needs and to use them to help manage your organization better. In Windows NT, you can simply add extra template files to the System Policy Editor. In Windows 95, you will either need to append these files on the end of ADMIN.ADM or use them separately. I recommend testing them by using them separately first. Then, if you are satisfied with the results, you could append them onto the end of the ADMIN.ADM file. Interface Changes for the RegistrySome of the settings regarding the interface changes do not lend themselves to be policies in System Policy Editor. Two examples are Force the Windows NT Screen Saver to Start During Logon and Change the Wallpaper that Appears at the Logon Screen. They are settings that apply to every user, and all the settings made in System Policy Editor configure settings to individual users. The Default User function in System Policy Editor applies the policy to each user individually, not the All Users Registry. Logon functions apply only to All Users. This template will work equally well for Windows 95 and Windows NT. The filename on the CD-ROM that accompanies this book for the .ADM file created from the interface Registry entries is INTERFACE.ADM. Listing J.1 shows the contents of INTERFACE.ADM. Listing J.1. Template file with interface Registry changes.CLASS USER CATEGORY !!SPEED POLICY "Boost Menu Speed" KEYNAME "Control Panel\Desktop" PART "Enter menu speed (1-10000, lower is faster)" EDITTEXT VALUENAME MenuShowDelay END PART END POLICY POLICY "Boost Window Speed" KEYNAME "Control Panel\Desktop\WindowMetrics" PART "I want faster windows" CHECKBOX VALUENAME MinAnimate VALUEON "0" VALUEOFF "1" END PART END POLICY END CATEGORY CATEGORY !!LOOK POLICY !!MOVE KEYNAME "Control Panel\Desktop" PART "Horizontal Value (from left edge, in pixels)" EDITTEXT VALUENAME WallPaperOriginX END PART PART "Vertical Value (from top edge, in pixels)" EDITTEXT VALUENAME WallPaperOriginY END PART END POLICY POLICY !!PRESERVE KEYNAME Software\Microsoft\Windows\CurrentVersion\Policies\Explorer VALUENAME NoSaveSettings VALUEON "0" VALUEOFF "1" END POLICY END CATEGORY CATEGORY !!SHUTDOWN POLICY "Specify Shutdown Setting" KEYNAME Software\Microsoft\Windows\CurrentVersion\Explorer PART "Select preferred shutdown option" DROPDOWNLIST VALUENAME "Shutdown Setting" ITEMLIST NAME "Shut down the computer?" VALUE NUMERIC 1 NAME "Restart the computer?" VALUE NUMERIC 2 NAME "Close all programs and log on Âas a different user?" VALUE NUMERIC 3 END ITEMLIST END PART END POLICY END CATEGORY CLASS MACHINE CATEGORY !!ICON POLICY "Remove shortcut arrows from icons" KEYNAME SOFTWARE\Classes\Lnkfile ACTIONLISTON VALUENAME IsShortcut VALUE NUMERIC 0 END ACTIONLISTON END POLICY END CATEGORY CATEGORY !!SHELL POLICY "Use Program Manager as the Shell" KEYNAME "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" VALUENAME Shell VALUEON "progman.exe" VALUEOFF "explorer.exe" END POLICY POLICY "Use the old Task List" KEYNAME "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" VALUENAME TaskMan VALUEON "taskman.exe" VALUEOFF "taskmgr.exe" END POLICY END CATEGORY [STRINGS] SPEED="Enhance Interface Performance" LOOK="Change Desktop Appearance" MOVE="Move the wallpaper from the center of the screen" PRESERVE="Preserve Desktop Settings at Exit" SHUTDOWN="Shutdown Settings" ICON="Desktop Icons" SHELL="Shell" The resulting System Policy Editor entries are shown in Figures J.1 through J.5. Figure J.1 shows the result of the MenuShowDelay function in Listing J.1. The !!Speed string (as a category name) is replaced by the Enhance Interface Performance text in Figure J.1. Improving performance is also the goal of the MinAnimate portion of the template in Listing J.1. Figure J.2 shows the result of the template in the System Policy Editor screen. Figure J.1. Boosting the menu speed with System Policy Editor. Figure J.2. Removing the window animation with System Policy Editor.
Every time you exit Windows, you can set it to the same option with the Shutdown setting in the System Policy Editor. The ITEMLIST entry in Listing J.1 produces the lists shown at the bottom of Figure J.4. The CLASS MACHINE settings in INTERFACE.ADM create the settings for the computer, as shown in Figure J.5. Figure J.3. Offset the wallpaper for better viewing. Figure J.4. Set the shut-down settings for consistency. Figure J.5. Computer-based settings allow system customization.
|
|